package listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionActivationListener;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionIdListener;

/**
 * Application Lifecycle Listener implementation class MyListener1
 *
 */

public class MySessionBinding implements  HttpSessionBindingListener {

	String username;
    /**
     * Default constructor. 
     */
    public MySessionBinding() {
        // TODO Auto-generated constructor stub
    	System.out.println("MySessionBinding ...");
    }

    public MySessionBinding(String username){
		this.username=username;
	}
    
	/**
     * @see HttpSessionBindingListener#valueBound(HttpSessionBindingEvent)
     */
    public void valueBound(HttpSessionBindingEvent event)  { 
    	System.out.println("valueBound:");
    }

    /**
     * @see HttpSessionBindingListener#valueUnbound(HttpSessionBindingEvent)
     */
    public void valueUnbound(HttpSessionBindingEvent event)  { 
    	System.out.println("valueUnbound:");
    }
    
	

	
	
}
